<template>
  <keep-alive :exclude="notCacheName">
    <router-view ref="child"/>
  </keep-alive>
</template>

<script>
export default {
  name: 'gen-pages',
  data () {
    return {
      cacheChaildName: ''
    }
  },
  computed: {
    notCacheName () {
      return (this.$route.meta && this.$route.meta.notCache) ? this.$route.name : ''
    }
  }
}
</script>

<style lang="less">

</style>
